<p class="Head1"><help:paragraphinfo state="U" number="1"/><help:key-word value="InputBox; function" tag="kw66617_1"/><help:link Id="66617">InputBox Function [Runtime]</help:link></p>
<p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Displays a prompt in a dialog at which the user can input text. The input is assigned to a variable.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>The <span class="T1">InputBox</span> statement is a convenient method of entering text through a dialog. Confirm the input by clicking OK or pressing Return. The input is returned as the function return value. If you close the dialog with Cancel, <span class="T1">InputBox</span> returns a zero-length string ("").</p>
<p class="PropText"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/>InputBox (Msg As String[, Title As String[, Default As String[, x_pos As Integer, y_pos As Integer]]]]) </p>
<p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Msg</span>: String expression displayed as the message in the dialog box.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Title</span>: String expression displayed in the title bar of the dialog box.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Default</span>: String expression displayed in the text box as default if no other input is given.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">x_pos</span>: Integer expression that specifies the horizontal position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">y_pos</span>: Integer expression that specifies the vertical position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>If <span class="T1">x_pos</span> and <span class="T1">y_pos</span> are omitted, the dialog is centered on the screen. The position is specified in <help:popup Id="66636" Eid="twips" xmlns:help="http://openoffice.org/2000/help">twips</help:popup>.</p>